package com.atguigu.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * QuickStartController
 *
 * @Author: 马伟奇
 * @CreateTime: 2021-02-23
 * @Description:
 */
@RestController
public class QuickStartController {

    @Value("${person.name}")
    private String name;

    @Value("${person.age}")
    private String age;


    @RequestMapping("/demo")
    public String demo(){
        return "name----"+ name + "----age----" +age;
    }
}